package com.gjw.designpattern.factory.abstractFactory;

/**
 * @Author gjw
 * 抽象工厂模式
 *
 */
public class Client {


    public static void main(String[] args) {
        HuaWeiFactory hw = new HuaWeiFactory();
        SanXingFactory sx = new SanXingFactory();
        MeiZuFactory mz = new MeiZuFactory();
        Chip hwChip = hw.createChip();
        Screen hwScreen = hw.createScreen();
        Chip sxChip = sx.createChip();
        Screen sxScreen = sx.createScreen();
        Screen mzScreen = mz.createScreen();
        System.out.println(hwChip.toString());
        System.out.println(hwScreen.toString());
        System.out.println(sxChip.toString());
        System.out.println(sxScreen.toString());
        System.out.println(mzScreen.toString());

    }
}
